<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户管理 leads客户</title>
<link href="${rc.contextPath}/common/css/common/common.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/common/js/common.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/jquery.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/thickbox/thickbox.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/main.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/config.js"></script>
<script type="text/javascript" src="${rc.contextPath}/common/js/util.js"></script>
<script type="text/javascript"
	src="${rc.contextPath}/common/js/market/customer/vanish_soon_customer.js"></script>
<script language="javascript" type="text/javascript"
	src="${rc.contextPath}/common/js/calendar/WdatePicker.js"></script>

<link rel="stylesheet"
	href="${rc.contextPath}/common/js/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css" />
<script type="text/javascript"
	src="${rc.contextPath}/common/js/zTree/js/jquery.ztree.core-3.5.js"></script>

<script>
var deptJson = $deptJson;
</script>

</head>
<body>
<center><div class="div6" id="waitDiv">加载中...</div></center>
	<div id="bg" class="bg" style="display: none;"></div>
	<div class="main">
		<!--可拖动 上部分-->
		<div class="position">
			<div class="p_left">当前位置：客户管理 &lt; 即将流走客户</div>
			<div class="p_right">
				<dl>
					<dt>姓名：</dt>
					<dd>$!{currentUser.ename}</dd>
				</dl>
				<dl>
					<dt>登录时间：</dt>
					<dd>
						<span id="nowDate"></span>
					</dd>
				</dl>
			</div>
		</div>
		<div class="topBox">
			<div class="mesCheck">
				<div class="title1">
					<strong>即将流走客户 </strong>
				</div>
				<div class="box2C">
					<div class="tableForm">
						<form id="form">
							<table border="0" align="center" cellpadding="0" cellspacing="0"
								class="tab1">
								<tr>
									<th width="100">客户类型：</th>
									<td width="300"><select id="selectCustomerType">
											<option value="">全部</option> #foreach($customerTypeEnmu in
											$customerTypeEnmuArray)
											<option value="$customerTypeEnmu.value">$customerTypeEnmu.label</option>
											#end
									</select></td>
									<th width="100">流走日期：</th>
									<td><input type="text" id="startTime" size="15"
										class="input" onfocus="setStartTime()" onclick="this.value=''"
										readonly="readonly" /> <img
										onclick="WdatePicker({el:'startTime'})"
										src="${rc.contextPath}/common/js/calendar/skin/datePicker.gif" width="16"
										height="22" /> 到 <input type="text" id="endTime" size="15"
										class="input" onfocus="setEndTime()" onclick="this.value=''"
										readonly="readonly" /> <img
										onclick="WdatePicker({el:'endTime'})"
										src="${rc.contextPath}/common/js/calendar/skin/datePicker.gif" width="16"
										height="22" /></td>
								</tr>
								<tr>
									<th width="100">会员编号：</th>
									<td width="300"><input type="text" id="customId"
										class="input" maxlength="50" /></td>
									<th width="100">联系人：</th>
									<td><input type="text" id="customName" class="input"
										maxlength="50" /></td>
								</tr>
								<tr>
									<th width="100">手机：</th>
									<td width="300"><input type="text" id="phone"
										class="input" maxlength="50" /></td>
									<th width="100">电子邮箱：</th>
									<td width="300"><input type="text" id="email"
										class="input" maxlength="50" /></td>
								</tr>

								<tr>
									#if($currentUser.isResponsible == 1)
									<th>所属人：</th>
									<td><input id="dept" type="text" value="请选择"
										style="width: 120px; height: 25px;" readonly="readonly"
										onclick="showMenu()" />
									</ul>
										<div id="menuContent" class="menuContent"
											style="display: none; position: absolute; background-color: #EFEFEF; border: 1px solid #CCCCCC;">
											<ul id="treeDemo" class="ztree"
												style="margin-top: 0; width: 160px;"></ul>
										</div> <select id="emp" style="width: 120px; height: 25px;">
											<option value="">请选择</option>
									</select></td> #end
									<th>所属区域：</th>
									<td><select onmouseup="changeClassB(this)">
										<option value="">请选择</option>
											#foreach($area in $parentAreaList)
											<option value="$area.areaID">$area.name</option> #end
									</select> <select id="area">
									<option value="">请选择</option>
									 #foreach($area in $childAreaList)
											<option value="$area.areaID">$area.name</option> #end
									</select></td>
								</tr>

								<tr>
									<td colspan="4">
										<div class="btn_all">
											<div class="btnOper2 btn_inline">
												<a href="#" class="btn2" onclick="query()"><span>查询</span></a>&nbsp;&nbsp;&nbsp;
											</div>
											<div class="btnOper2 btn_inline">
												<a href="#" class="btn2" onclick="doReset()"><span>清空</span></a>&nbsp;&nbsp;&nbsp;
											</div>
										</div>
									</td>
								</tr>
							</table>
						</form>

						<!-- 隐藏控件 -->
						<input id="rootPath" type="text" value="${rc.contextPath}"
							style="display: none" /> <input id="customerType" type="text"
							value="${customerType}" style="display: none" /> <input
							id="isResponsible" type="text"
							value="${currentUser.isResponsible}" style="display: none" /> <input
							id="userId" type="text" value="${currentUser.empno}"
							style="display: none" />
							<input id="deptId" type="text" value="" style="display: none"/>
					</div>
					<div class="overflow" style="overflow-x: auto; width: 100%;">
						<!-- 数据列表 -->
						<table class="tab2" id="dataList">

						</table>

						<!-- 推送弹窗 -->
						<input type="text" id="pushCustomerId" style="display: none;" />
						<div id="configBatchInfo" style="" class="div4"></div>
						<!-- 添加记录弹窗 -->
						<div id="addCustomerRemark"
							style="padding: 50px; text-align: center;z-index:100;" class="div4">
							<table>
								<tr>
									<td><textarea id="remark" rows="10" cols="10"></textarea></td>
								</tr>
								<tr>
									<td><input type="text" id="remarkCustomerId"
										style="display: none;" />
										<div class="btnOper2 btn_inline">
											<a href="#" class="btn2" onclick="doAddRemark()"><span>添加</span></a>&nbsp;&nbsp;&nbsp;
										</div>
										<div class="btnOper2 btn_inline">
											<a href="#" onclick="closeWindow('addCustomerRemark')"
												class="btn2"><span>关闭</span></a>&nbsp;&nbsp;&nbsp;
										</div></td>
								</tr>
							</table>
						</div>

						<!-- 查看单条记录弹窗 -->
						<div id="modifyCustomerRemark"
							style="padding: 50px; text-align: center; z-index: 100"
							class="div4">
							<table>
								<tr>
									<td><textarea id="remark" rows="10" cols="10"></textarea></td>
								</tr>
								<tr>
									<td><input type="text" id="remarkCustomerId"
										style="display: none;" /> <input type="text" id="customerId"
										style="display: none;" />
										
										<div class="btnOper2 btn_inline">
											<a href="#" onclick="closeWindow('modifyCustomerRemark', 1)"
												class="btn2"><span>关闭</span></a>&nbsp;&nbsp;&nbsp;
										</div></td>
								</tr>
							</table>
						</div>
						<!-- 查看记录弹窗 -->
						<div id="queryCustomerRemark"
							style="padding: 50px; text-align: center;" class="div4">
							<table id="remarkDataList">

							</table>
						</div>
					</div>

					<!-- #BeginLibraryItem "/Library/page.lbi" -->
					<div class="page clearfix">
						<input type="text" id="pageNow" style="display: none;" />
						<ul class="le">
							<li>显示<span id="pageSize"></span></li>
							<li>共<span id="rowCount"></span>条
							</li>
							<li><span id="pageIndex"></span>-<span id="pageCount"></span>页</li>
						</ul>
						<ul class="ri">
							<li><a href="#" class="go" onclick="goInputPage()">&nbsp;</a></li>
							<li>到 <input type="text" id="inputPage" class="input"
								size="4" /> 页
							</li>

				            <li><a style="cursor:pointer;" class="btn" onclick="query('lastPage')">[末页]</a></li>
				            <li><a style="cursor:pointer;" class="btn" onclick="query('nextPage')">[下页]</a></li>
				            <li><a style="cursor:pointer;" class="btn" onclick="query('prevPage')">[前页]</a></li>
				            <li><a style="cursor:pointer;" class="btn"onclick="query(1)">[首页]</a></li>
						</ul>
					</div>
					<!-- #EndLibraryItem -->
				</div>
			</div>
		</div>

	</div>

</body>
</html>
